﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageUser.aspx.cs" Inherits="Manageweb_ManageUser_ManageUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../images/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table width="750" border="1" cellspacing="0" cellpadding="0">
                <tr>
                    <td style="background-color: #507cd1; color: White; font-weight: bold; text-align: left;">
                        &nbsp;管理用户
                        <asp:Label ID="LB_ID" runat="server" Visible="False"></asp:Label></td>
                </tr>
            </table>
            <br />
            <asp:Label ID="LB_ManageUser" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="Red"></asp:Label><br />
            <table border="1" cellpadding="0" cellspacing="0" width="750px">
                <tr>
                    <td>
                        <asp:GridView ID="GV_UserList" runat="server" AllowPaging="True" AllowSorting="True"
                            AutoGenerateColumns="False" CellPadding="4" DataKeyNames="User_ID" DataSourceID="ODS_UserList"
                            ForeColor="#333333" PageSize="15" Width="100%">
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#EFF3FB" />
                            <Columns>
                                <asp:BoundField DataField="User_ID" HeaderText="User_ID" InsertVisible="False" ReadOnly="True"
                                    SortExpression="User_ID" Visible="False" />
                                <asp:BoundField DataField="User_LoginID" HeaderText="账号" SortExpression="User_LoginID" />
                                <asp:TemplateField HeaderText="是否锁定" SortExpression="User_IsLock">
                                    <EditItemTemplate>
                                        <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("User_IsLock") %>' />
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Button ID="Btn_IsLock" runat="server" CommandArgument='<%# Eval("User_ID") %>'
                                            Text='<%# FormatIsLock(Eval("User_IsLock")) %>' Width="60px" OnCommand="Btn_IsLock_Command" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="User_LoginIP" HeaderText="上次登录IP" SortExpression="User_LoginIP" />
                                <asp:BoundField DataField="User_LoginDateTime" HeaderText="上次登录时间" SortExpression="User_LoginDateTime" />
                                <asp:BoundField DataField="User_DateTime" HeaderText="注册时间" SortExpression="User_DateTime" />
                            </Columns>
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#2461BF" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                        <asp:ObjectDataSource ID="ODS_UserList" runat="server" OldValuesParameterFormatString="original_{0}"
                            SelectMethod="GetDataMain" TypeName="AccessDAL.UserTableAdapters.UserTableAdapter">
                        </asp:ObjectDataSource>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
